import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/ad_order_create_csj_entity.dart';

AdOrderCreateCsjEntity $AdOrderCreateCsjEntityFromJson(
    Map<String, dynamic> json) {
  final AdOrderCreateCsjEntity adOrderCreateCsjEntity = AdOrderCreateCsjEntity();
  final String? orderId = jsonConvert.convert<String>(json['order_id']);
  if (orderId != null) {
    adOrderCreateCsjEntity.orderId = orderId;
  }
  final String? msg = jsonConvert.convert<String>(json['msg']);
  if (msg != null) {
    adOrderCreateCsjEntity.msg = msg;
  }
  return adOrderCreateCsjEntity;
}

Map<String, dynamic> $AdOrderCreateCsjEntityToJson(
    AdOrderCreateCsjEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['order_id'] = entity.orderId;
  data['msg'] = entity.msg;
  return data;
}

extension AdOrderCreateCsjEntityExtension on AdOrderCreateCsjEntity {
  AdOrderCreateCsjEntity copyWith({
    String? orderId,
    String? msg,
  }) {
    return AdOrderCreateCsjEntity()
      ..orderId = orderId ?? this.orderId
      ..msg = msg ?? this.msg;
  }
}